package fr.cephb.joperon.core;

import com.sleepycat.db.DatabaseEntry;
import com.sleepycat.db.DatabaseException;
/** not used, ignore */
public class DefaultCursorListener implements CursorListener
	{
	private Object userData;
	public DefaultCursorListener()
		{
		this(null);
		}
	
	public DefaultCursorListener(Object userData)
		{
		this.userData=userData;
		}

	public Object getObject()
		{
		return this.userData;
		}
	
	public void setObject(Object o)
		{
		this.userData=o;
		}
	
	public <T>  T getObject(Class<T> clazz)
		{
		return clazz.cast(getObject());
		}
	
	@Override
	public boolean found(DatabaseEntry key, DatabaseEntry value)  throws DatabaseException
		{
		return false;
		}

	}
